<template>
  <div class="hello">
    <b-alert show variant="primary"></b-alert>
    </br>
    <b-alert show variant="success">我的位置：{{msg}}</b-alert>
    <b-alert show variant="danger">经纬度坐标： {{position}}</b-alert>
    <!-- <b-alert show variant="danger">Danger Alert</b-alert>
    <b-alert show variant="warning">Warning Alert</b-alert>
    <b-alert show variant="info">Info Alert</b-alert>
    <b-alert show variant="light">Light Alert</b-alert>
    <b-alert show variant="dark">Dark Alert</b-alert> -->
  </div>
</template>


<script>
export default {
  name: 'My',
  data() {
    return {
      msg: '',
      position:[]
    }
  },
  components: {},
  mounted() {
    this.msg = localStorage.getItem('mylocation')
    this.position = localStorage.getItem('position')
  },
  methods: {
    recieveLocation: function() {}
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1,
h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
